POV-Ray : Newsgroups : povray.binaries.images : preview of deform patch (53 kbu) : preview of deform patch (53 kbu) Server Time
20 Jul 2024 17:18:08 EDT (-0400)
  preview of deform patch (53 kbu)  
From: Wlodzimierz ABX Skiba
Date: 11 Dec 2000 07:50:23
Message: <3a34cd8f@news.povray.org>
this image is working sample what I'm working on
this is achived from such code:

#declare L=<2.0, 2.0, -5.0>;
camera { location L direction 1.5*z right 4/3*x look_at 0 }
light_source { <2,-2,-1.1> }
light_source { L color rgb 0.7 }
#declare Map=color_map{[0 color rgb 1][0.5 color rgb 0.5][1 color rgb
1]}
#declare Pigment=pigment{gradient y color_map{Map}}
#declare Texture=texture{pigment{Pigment} scale y/40}

deform
 {
  /* define type of deformation and base object */
  turn box{-1 1 texture{Texture}}

  /* define container */
  contained_by { cylinder{ <0,-1,0> <0,1,0> 3 }}

  /* optional parameters for all deformations */
  accuracy 0.05
  normal_accuracy 3, 0.01
  normal_weighted

  /* parameters proper for type of deformation */
  full_after 8
 }

ABX


Post a reply to this message


Attachments:
Download 'twist.jpg' (53 KB)

Preview of image 'twist.jpg'
twist.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.